import request from "@/utils/request";

// 评论列表 
export const getCommentList = (page: number) => {
    return request({
        url: `/goods_comment/${page}`,
        method: "get",
    });
};

// 修改商品评价状态
export const changeStatus = (id: number, data: object) => {
    return request({
        url: `/goods_comment/${id}/update_status`,
        method: "post",
        data
    });
};

// 回复
export const review = (id: number, data: object) => {
    return request({
        url: `/goods_comment/review/${id}`,
        method: "post",
        data
    });
};